package com.adderis.soft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.adderis.soft.domain.dao.IApplicationsDao;
import com.adderis.soft.domain.model.Applications;
import com.adderis.soft.service.IApplicationsBo;

@Service("applicationsService")
@Transactional(propagation = Propagation.REQUIRED, readOnly = true)
public class ApplicationsServiceImpl implements IApplicationsBo {

	@Autowired
	private IApplicationsDao applicationsDao;

	@Transactional(readOnly = false)
	public void persist(Applications transientApplications) {
		applicationsDao.persist(transientApplications);

	}

	@Transactional(readOnly = false)
	public void remove(Applications persistentApplications) {
		applicationsDao.remove(persistentApplications);

	}

	@Transactional(readOnly = false)
	public Applications merge(Applications detachedApplications) {

		return applicationsDao.merge(detachedApplications);
	}
	
	@Transactional(readOnly = false)
	public void remove(Integer id) {
		applicationsDao.remove(id);

	}

	public Applications findById(Integer id) {
		return applicationsDao.findById(id);
	}

	public List<Applications> findAll() {
		return applicationsDao.findAll();
	}

	public List<Applications> search(String searchString) {
		return applicationsDao.search(searchString);
	}

	

}
